Skip to main content link. Accesskey S
  • Help
  • HCL Logo
  • HCL Notes and Domino Application Development wiki
  • THIS WIKI IS READ-ONLY. Individual names altered for privacy purposes.
  • HCL Forums and Blogs
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • API Documentation
Search
Community Articles > Troubleshooting > XULRunner and XPages in Notes Client
  • Share Show Menu▼
  • Subscribe Show Menu▼

Recent articles by this author

XPages: Combining Languages

XPages has a number of languages, but there's nothing stopping you combining them. This article outlines the languages available with examples for mixing languages, to help speed up your coding and confidence with XPages

Creating a Live Text Widget to Launch an Authenticated XPage

Here is a video to show how to create a Live Text widget to launch an authenticated XPage in the Notes Client (8.0.x or above)

Dojox Charting Tutorial for XPages Part Two

Since my initial post I did some more investigation and I'm now showing how to click through from a chart to content. With this you can make a powerful dashboard with good performance

Launching First Attachment From a View in XPages

Today I picked up a query about how to launch the first attachment in a document from a view panel in XPages. My initial thought was to use the XPages @AttachmentNames function, but that doesn't work. Instead I have two alternatives, which may also offer thoughts

Accessing an Image Resource as a Favicon on XPages

Favicons (like the Lotus Notes image on the tab and address bar when you're looking at this page in your browser) help give your website application the personal touch. But there's something you need to be careful about...
Community articleXULRunner and XPages in Notes Client
Added by ~Tanita Dwojipychekynds | Edited by ~Pippy Asaacheklen on September 26, 2016 | Version 3
  • Actions Show Menu▼
expanded Abstract
collapsed Abstract
Recently I had a couple of instances where XPages in the Notes Client displayed contents slightly differently to how it was displayed on browsers. With help from an expert, I was pointed in the direction of the XULRunner.
Tags: 8.5.1, XPages, client
ShowTable of Contents
HideTable of Contents
    • 0.0.1 About the Author

The first example I had was a view with some fixed width columns to ensure the layout was clean, because the views were held in a container that adjusted to the size of the screen. Everything looked fine on the web (in both Internet Explorer and Firefox), with values wrapping accordingly. But in the Notes Client, sometimes a column holding a reference number would wrap, but on other occasions it expanded and would not wrap, as I found with the value "XXXXXXXX-XXXXXXXXX-SERVICES-21-10-2008-MR-10" (I've replaced some of the content with X to keep it more generic).

After trying various things and a bit of head-scratching, I despatched a desperate tweet and a very helpful member of the community informed me that XPiNC used an XULRunner equivalent to Firefox 2. After a fair amount of hunting on the web I learned something more about XULRunner, predominantly from this postexternal link, that it is a rendering engine developed by the Mozilla Foundation. Some more hunting on word wrap in table cells in Firefox 2 offered a few solutions. The most common was to force a carriage return at the appropriate place, which is fine if you're creating a website and coding the content yourself, more challenging if you're building applications. Another offered some CSS formatting to set "table-layout: fixed" on the table and "white-space: -moz-pre-wrap;" on the relevant column. This would have been ideal, but I couldn't get it to work (that may well be because I was doing something wrong, my web development experience is not immense!). Finally the fall-back was to set the se for the table cell to "overflow: hidden". This meant that part of the reference was not visible, but because the application was based on a spreadsheet and because the end users could open the relevant documents to see the full value, it sufficed for my requirements.IRS Tax Attorney San Francisco

A couple of days later I was working on a personal XPages application which holds documents at different levels of a hierarchy. They're not response documents, but a Position field allows me to order them correctly and I used a repeat control containing an empty xp:span with the style "padding-left: 20px" to indent to the correct hierarchical level and follow it with the XSPViewEntry title. This looked nice on Internet Explorer and Firefox, but when I happened to open the application in the Notes Client, I got a blank line with the title on the following line. My thoughts immediately jumped back to the XULRunner, so my first attempt was to set the span's style to "display: inline", but it didn't work. A quick look at the source, and I immediately realised the problem - the repeat control creates a div around the contents. The repeat was within another repeat, so it was not possible to use the header and footer facets, as Steve Castledineexternal link describes. But setting the style of the xp:repeat to "display: inline" instead of the span's style solved the problem.

As of 8.5.1 FP1 it's still relevant.

About the Author

Paul Withers is a Domino Developer at Intec Systems Ltd. The original post of this and other tips / observations / tutorials are available here

  • Actions Show Menu▼


expanded Attachments (0)
collapsed Attachments (0)
Edit the article to add or modify attachments.
expanded Versions (3)
collapsed Versions (3)
Version Comparison     
VersionDateChanged by              Summary of changes
This version (3)Sep 26, 2016, 6:39:05 AM~Pippy Asaacheklen  
2Apr 4, 2016, 2:25:22 PM~Nita Feznitexader  Minor change
1Mar 10, 2010, 6:01:05 PM~Karl Kigerosterikle  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedAbout
  • HCL Software
  • HCL Digital Solutions community
  • HCL Software support
  • BlogsDigital Solutions blog
  • Community LinkHCL Software forums and blogs
  • About HCL
  • Privacy
  • Accessibility